public class animal {
    public dog d;
    public cat c;
}

class dog{

}
class cat{

}